cmake_minimum_required(VERSION 3.6)

project(clientframework)
include_directories(.)
#add_subdirectory(ClientMod)
add_library(${PROJECT_NAME} STATIC ClientService.cpp ClientModManager.cpp)

target_link_libraries(${PROJECT_NAME}  Tool boost_strip glog )
target_include_directories(${PROJECT_NAME}
        PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
        $<INSTALL_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/../include
        $<INSTALL_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/../include
        )


IF (WIN32)
    MESSAGE(STATUS "Now is windows")
    target_link_libraries(${PROJECT_NAME}
            ws2_32
            )
ELSEIF (APPLE)
    MESSAGE(STATUS "Now is Apple systens.")
ELSEIF (UNIX)
    MESSAGE(STATUS "Now is UNIX-like OS's.")
ENDIF ()

install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${CMAKE_BINARY_DIR}/${CMAKE_SYSTEM_NAME}.out/lib)
